package main

import "fmt"

type Logger struct {
	level int
}

type Y struct {
	Logger
	Name string
}

func (this *Y) ShowInfo() {
	fmt.Println(this.level, this.Name)
}

func NewY(level int, Name string) *Y {
	return &Y{level, Name}
}
func main() {
	yy := &Y{1, "san"}
	yy.SwhoInfo()
}
